export type WorkTag =
	| typeof FunctionComponent
	| typeof HostRoot
	| typeof HostComponent
	| typeof HostText
	| typeof Fragment
	| typeof ContextProvider
	| typeof SuspenseComponent
	| typeof OffscreenComponent
	| typeof LazyComponent
	| typeof MemoComponent;

//WorkTag  定义为字面量类型 0 3 5 6 7 8 13 14 15 16

export const FunctionComponent = 0; // 函数组件

export const HostRoot = 3; // 根 HostRootFiber

export const HostComponent = 5; // div 这种

export const HostText = 6; // 文本

export const Fragment = 7; // Fragment 类型的fiber

export const ContextProvider = 8; // context 上下文类型的fiber

export const SuspenseComponent = 13;

export const OffscreenComponent = 14;

export const LazyComponent = 16;
export const MemoComponent = 15;
